<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>模板字符串</title>
    
</head>
<script>
    //ES6引入新的声明字符串的方式  [``]  ''  ""
    //1.声明
    let str = `我是一个字符串哦`
    console.log(str,typeof str)
    //2.内容中可以出现换行符 ***
    let str2 = `<ul>
                    <li>沈腾</li>
                    <li>贾玲</li>
                </ul>`
    console.log(str2)
    //3.变量拼接 ***
    let a = '玛丽'
    let b = `${a}张三是一个铺子的`
    console.log(b)
</script>
</html>